$(function () {
    requestAjax("../indent/comboBox.htm", "get", "JSON", "", function (data) {
        if (data.result) {
            // var all = JSON.stringify(data.data);
            // console.log(all);
            set(data.data);
        } else {
            layer.msg(data.msg);
        }
    })

    //查询后台返回数据放入select中
    function set(hospitalList) {
        var option = "<option value=\"0\">请选择</option>";
        for (var i = 0; i < hospitalList.length; i++) {
            option += "<option value=\"" + hospitalList[i].hospital_id + "\">" + hospitalList[i].hospital_name + "</option>"
        }
        $("#typeid").html(option);
    }

})